home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 7_1.lha / 7_1 / 7_1c.c < prev    next >
Text File  |  1993-08-08  |  277b  |  13 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / call iam() forz each variable
  6. / using a pointer to the base class
  7. ase *bp = &a;
  8. p -> iam();
  9. p = &b;
  10. p -> iam();
  11. p = &c;
  12. p -> iam();
  13.